package com.example.admin.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 代码生成业务表字段
 * </p>
 *
 * @author wangkai
 * @since 2020-10-29
 */
@ApiModel(value="GenTableColumn对象", description="代码生成业务表字段")
@TableName("gen_table_column")
public class GenTableColumn extends Model<GenTableColumn> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "归属表编号")
    @TableField("table_id")
    private String tableId;

    @ApiModelProperty(value = "列名称")
    @TableField("column_name")
    private String columnName;

    @ApiModelProperty(value = "列描述")
    @TableField("column_comment")
    private String columnComment;

    @ApiModelProperty(value = "列类型")
    @TableField("column_type")
    private String columnType;

    @ApiModelProperty(value = "JAVA类型")
    @TableField("java_type")
    private String javaType;

    @ApiModelProperty(value = "JAVA字段名")
    @TableField("java_field")
    private String javaField;

    @ApiModelProperty(value = "是否必填（1是）")
    @TableField("is_required")
    private String isRequired;

    @ApiModelProperty(value = "是否为插入字段（1是）")
    @TableField("is_insert")
    private String isInsert;

    @ApiModelProperty(value = "是否编辑字段（1是）")
    @TableField("is_edit")
    private String isEdit;

    @ApiModelProperty(value = "是否列表字段（1是）")
    @TableField("is_list")
    private String isList;

    @ApiModelProperty(value = "是否查询字段（1是）")
    @TableField("is_query")
    private String isQuery;

    @ApiModelProperty(value = "显示类型（文本框、文本域、下拉框、复选框、单选框、日期控件）")
    @TableField("html_type")
    private String htmlType;

    @ApiModelProperty(value = "字典类型")
    @TableField("dict_type")
    private String dictType;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "创建者")
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新者")
    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }
    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }
    public String getColumnComment() {
        return columnComment;
    }

    public void setColumnComment(String columnComment) {
        this.columnComment = columnComment;
    }
    public String getColumnType() {
        return columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }
    public String getJavaType() {
        return javaType;
    }

    public void setJavaType(String javaType) {
        this.javaType = javaType;
    }
    public String getJavaField() {
        return javaField;
    }

    public void setJavaField(String javaField) {
        this.javaField = javaField;
    }
    public String getIsRequired() {
        return isRequired;
    }

    public void setIsRequired(String isRequired) {
        this.isRequired = isRequired;
    }
    public String getIsInsert() {
        return isInsert;
    }

    public void setIsInsert(String isInsert) {
        this.isInsert = isInsert;
    }
    public String getIsEdit() {
        return isEdit;
    }

    public void setIsEdit(String isEdit) {
        this.isEdit = isEdit;
    }
    public String getIsList() {
        return isList;
    }

    public void setIsList(String isList) {
        this.isList = isList;
    }
    public String getIsQuery() {
        return isQuery;
    }

    public void setIsQuery(String isQuery) {
        this.isQuery = isQuery;
    }
    public String getHtmlType() {
        return htmlType;
    }

    public void setHtmlType(String htmlType) {
        this.htmlType = htmlType;
    }
    public String getDictType() {
        return dictType;
    }

    public void setDictType(String dictType) {
        this.dictType = dictType;
    }
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GenTableColumn{" +
        "id=" + id +
        ", tableId=" + tableId +
        ", columnName=" + columnName +
        ", columnComment=" + columnComment +
        ", columnType=" + columnType +
        ", javaType=" + javaType +
        ", javaField=" + javaField +
        ", isRequired=" + isRequired +
        ", isInsert=" + isInsert +
        ", isEdit=" + isEdit +
        ", isList=" + isList +
        ", isQuery=" + isQuery +
        ", htmlType=" + htmlType +
        ", dictType=" + dictType +
        ", sort=" + sort +
        ", createBy=" + createBy +
        ", createTime=" + createTime +
        ", updateBy=" + updateBy +
        ", updateTime=" + updateTime +
        "}";
    }
}
